package ru.ifmo.ctd.year2008.notepad;

import java.io.Serializable;

/**
 * Unmodifiable line.
 * 
 * @author Arina Afanasyeva
 */
public class Line implements Serializable {
	private static final long serialVersionUID = -6946252226298971022L;
	
	private final long id;
	private final String str;
	
	public Line(long id, String str) {
		this.id = id;
		this.str = str;
	}
	
	public long getId() {
		return id;
	}
	
	public String getString() {
		return str;
	}
	
	@Override
	public String toString() {
		return String.format("%s\n", str);
	}
}
